﻿// Decompiled with JetBrains decompiler
// Type: SandBox.Missions.Handlers.AmbushBattleDeploymentHandler
// Assembly: SandBox, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 75BA0B61-63FF-423A-8603-0A2974B621BB
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\Modules\SandBox\bin\Win64_Shipping_Client\SandBox.dll

using SandBox.Missions.AgentControllers;
using TaleWorlds.MountAndBlade;

#nullable disable
namespace SandBox.Missions.Handlers
{
  public class AmbushBattleDeploymentHandler : DeploymentHandler
  {
    public AmbushBattleDeploymentHandler(bool isPlayerAttacker)
      : base(isPlayerAttacker)
    {
    }

    public override void FinishDeployment()
    {
      base.FinishDeployment();
      if (this.Mission.GetMissionBehavior<AmbushMissionController>() == null)
        return;
      this.Mission.GetMissionBehavior<AmbushMissionController>().OnPlayerDeploymentFinish();
    }
  }
}
